package com.example.GeoCoder;

import org.json.JSONException;
import org.json.JSONObject;

public class PlaceObject {

	private String venueName;
	private String addr;
	private String rating="0";
	private String latitude;
	private String longitude;
	private String url;
	
	public PlaceObject(JSONObject json) throws JSONException {
		try{
		venueName = json.getString("name");
		addr = json.getString("vicinity");
		rating = json.getString("rating");
		//latitude = json.getJSONObject("geometry").getJSONObject("location").getString("lat");
		//longitude = json.getJSONObject("geometry").getJSONObject("location").getString("lng");
		//url = json.getString("name");
		}catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	public String getVenueName() {
		return venueName;
	}
	public String getAddress() {
		return addr;
	}
	public String getRating() {
		return rating;
	}
	public String getLatitude() {
		return latitude;
	}
	public String getLongitude() {
		return longitude;
	}
	public String getURL() {
		return url;
	}
	
}